﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain
{
    /// <summary>
    /// 菜单
    /// </summary>
    public class Menu
    {
        /// <summary>
        /// 菜单编号
        /// </summary>
        [Key]
        public int MenuId {  get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName {  get; set; }
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string Url {  get; set; }
        /// <summary>
        /// 菜单父级编号
        /// </summary>
        public int PId {  get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 排序Id
        /// </summary>
        public int? OrderById {  get; set; }
    }
}
